﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/content/table_btn.css")" rel="stylesheet" type="text/css"/>

<!--[if lt IE 8]>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
<![endif]-->

<noscript>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/content/activitie_noscript.css")" rel="stylesheet" type="text/css"/>
</noscript>

@model IEnumerable<PessMvc.Models.ExpertJudgeModel>

@{
    ViewBag.Title = "Index";
}

<h2>评委列表</h2>
<div id="operate" class="formUp">
   <div>@Html.ActionLink("返回评委组列表 ", "Index", "ExpertGroup", new {activityID=ViewBag.ActivityID},null)</div>
    @using(Html.BeginForm("AddExpertJudges", "ExpertJudge", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
        <div>@Html.ActionLink(" 下载评委模版", "Download", "Home", new {filename="pw_template.xls" },null)</div>
        <input type="submit" value="上传" />
        <input type="file" name="file" class="fileNew" id="fileNew" onchange="document.getElementById('textNew').value=this.value" />
        <input type="button" class="btnNew" value="浏览..." /> 
        <input type="text" name="textNew" id="textNew" class="textNew" readonly="true" /> 
        <span>评委名单：</span>
        @Html.Hidden("activityID", new { activityID = Model })

    }
</div>



<fieldset class="show">
<div id="export">
    @using(Html.BeginForm("Index","ExpertJudge",FormMethod.Get)){
        <div>@Html.Hidden("ActivityID", new { ActivityID = ViewBag.ActivityID },null)</div>
        <div> 评委组： @Html.DropDownList("ExpertGroupID", string.Empty) </div>
        <div class="btn"><input type="submit" value="查询" /></div>
    }
    <div>
        @using(Html.BeginForm("ExportToExcel","ExpertJudge",FormMethod.Post))
        {
            @Html.Hidden("ActivityID", new { ActivityID = ViewBag.ActivityID },null)
            <div class="btn"><input type="submit" value="下载评委名单Excel" /></div>
        }
    </div>
</div>
<div id="export">
    @Html.Partial("_ExpertJudgesPartial",Model)
</div>

@*@{
    var grid=new WebGrid(Model,defaultSort:"RealName");
}
@grid.GetHtml(columns:grid.Columns(
    grid.Column("RealName"),
    grid.Column("Gender"),
    grid.Column("Birthdate"),
    grid.Column("Phone"),
    grid.Column("SerialNumber"),
    grid.Column("ExpertGroupCallsign")
))*@
</fieldset>
     <script>
            for (i=0;i< document.getElementsByTagName("table").length;i++){
                document.getElementsByTagName("table")[i].className = "oddTable";
                document.getElementsByTagName("table")[i].id = "showDetail";
            }
      </script>
